package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ParkingOrderAppealMapper;
import com.ruoyi.domain.ParkingOrderAppeal;
import com.ruoyi.service.IParkingOrderAppealService;

/**
 * 停车订单申诉Service业务层处理
 * 
 * @author dongdong
 * @date 2025-11-20
 */
@Service
public class ParkingOrderAppealServiceImpl implements IParkingOrderAppealService 
{
    @Autowired
    private ParkingOrderAppealMapper parkingOrderAppealMapper;

    /**
     * 查询停车订单申诉
     * 
     * @param id 停车订单申诉主键
     * @return 停车订单申诉
     */
    @Override
    public ParkingOrderAppeal selectParkingOrderAppealById(Long id)
    {
        return parkingOrderAppealMapper.selectParkingOrderAppealById(id);
    }

    /**
     * 查询停车订单申诉列表
     * 
     * @param parkingOrderAppeal 停车订单申诉
     * @return 停车订单申诉
     */
    @Override
    public List<ParkingOrderAppeal> selectParkingOrderAppealList(ParkingOrderAppeal parkingOrderAppeal)
    {
        return parkingOrderAppealMapper.selectParkingOrderAppealList(parkingOrderAppeal);
    }

    /**
     * 新增停车订单申诉
     * 
     * @param parkingOrderAppeal 停车订单申诉
     * @return 结果
     */
    @Override
    public int insertParkingOrderAppeal(ParkingOrderAppeal parkingOrderAppeal)
    {
        return parkingOrderAppealMapper.insertParkingOrderAppeal(parkingOrderAppeal);
    }

    /**
     * 修改停车订单申诉
     * 
     * @param parkingOrderAppeal 停车订单申诉
     * @return 结果
     */
    @Override
    public int updateParkingOrderAppeal(ParkingOrderAppeal parkingOrderAppeal)
    {
        return parkingOrderAppealMapper.updateParkingOrderAppeal(parkingOrderAppeal);
    }

    /**
     * 批量删除停车订单申诉
     * 
     * @param ids 需要删除的停车订单申诉主键
     * @return 结果
     */
    @Override
    public int deleteParkingOrderAppealByIds(Long[] ids)
    {
        return parkingOrderAppealMapper.deleteParkingOrderAppealByIds(ids);
    }

    /**
     * 删除停车订单申诉信息
     * 
     * @param id 停车订单申诉主键
     * @return 结果
     */
    @Override
    public int deleteParkingOrderAppealById(Long id)
    {
        return parkingOrderAppealMapper.deleteParkingOrderAppealById(id);
    }
}
